﻿using SMECustomerWebsite.Filters;
using SMECustomerWebsite.Models.ViewModels.Home;
using System.Web.Mvc;

namespace SMECustomerWebsite.Controllers
{
    public class HomeController : ControllerBase
    {
        [Authorize]
        [CustomActionFilter]
        public ActionResult Index()
        {
            HomeViewModel vm = new HomeViewModel
            {
                CurrentUser = CurrentUserRecord
            };
            return View(vm);
        }

        [Authorize]
        [CustomActionFilter]
        public ActionResult Test()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }
    }
}
